﻿package net.sapfree.core.db;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Date;

public class DbTestMain {

	/**
	 * @param args
	 * @throws DBException 
	 */
	public static void main(String[] args) throws SQLException
	{
		StringBuffer sb = new StringBuffer();
		System.out.println("start...");
		Connection conn = DBConnectionProvider.getConnection("jdbc/sapfree");
		System.out.println("get connection...");
		net.sapfree.core.db.Record record = new Record(conn,"QUANINFO");
		record.setPrimaryKey("QUAN_UUID");
		record.addData("QUAN_UUID", "123");
		record.addData("QUAN_NAME","我是中文");
		record.create();
		System.out.println("close connection...");
		conn.close();
		System.out.println("stop...");
	}

}
